<template>
	<view>
		<!-- #ifndef H5 -->
		<view class="head-nav" :class="{ active: isIphoneX}"></view>
		<!-- #endif -->
		<view class="head-return">{{pageVal}}</view>
		<view class="closeBox">
			<image :src="$util.img('/upload/uniapp/storeclose.png')" mode="widthFix"></image>
			<text class="close-title">{{textVal}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isIphoneX:false
			}
		},
		onShow() {
			this.isIphoneX=this.$util.uniappIsIPhoneX()
			this.$langConfig.refresh();
		},
		computed:{
			textVal(){
				if(this.$store.state.siteState==-2){
					return '该店铺不存在...'
				}else if(this.$store.state.siteState==-3){
					return '该店铺已打烊...'
				}
			},
			pageVal(){
				if(this.$store.state.siteState==-2){
					return '店铺不存在'
				}else if(this.$store.state.siteState==-3){
					return '店铺打烊'
				}
			}
		},
		onBackPress() {
			return true;
		}
	}
</script>

<style lang="scss">
	.head-nav {
		width: 100%;
		height: var(--status-bar-height);
	}
	
	.head-nav.active {
		padding-top: 40rpx;
	}
	
	.head-return {
		padding-left: 30rpx;
		padding-right: 30rpx;
		height: 90rpx;
		line-height: 90rpx;
		text-align: center;
		font-weight: 600;
		font-size: $ns-font-size-x-lg;
	
		text {
			display: inline-block;
			margin-right: 10rpx;
		}
	}
	.closeBox{
		width: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-top: 330rpx;
	}
	image{
		width: 240rpx;
	}
	.close-title{
		font-size: $ns-font-size-xx-lg;
		color: #B5B5B5;
		margin-top: 55rpx;
		letter-spacing: 4rpx;
	}
</style>
